﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Clandestine.Battle.Effects;

namespace Clandestine.Battle.Spells.Arcane
{
    public class FireMulti : MultipleTargetSpell
    {
        public override string Name
        {
            get { return "Fire (Multi)"; }
        }
        public override int MPCost
        {
            get { return 1; }
        }

        public override void OnShowSpellRing()
        {
            Ticker.AddTimer((r, dR) => BattleController.SpellRing.Color = new GLColor(1, r, r, 1), SpellRingDuration);
        }

        public override BattleAnimation Cast(Combatant caster, Combatant[] targets)
        {
            // [HARDCODE DEBUG]
            int damage = 88;
    
            // Animation
            return delegate
            {
                BattleEffects.DoEffect("Fire", caster, targets);
                foreach (Combatant target in targets)
                    target.TakeDamage(damage);
            };

        }
    }
}
